//
// Created by konglinglong on 2020/9/24.
//

#ifndef CSP_INCLUDE_OSAL_OSTHREAD_H_
#define CSP_INCLUDE_OSAL_OSTHREAD_H_

#include <pthread.h>
#include "commDef.h"

#ifdef __cplusplus
extern "C"
{
#endif

typedef void *(*os_thread_routine) (void*);

int32_t OS_ThreadCreate(pthread_t *tid, os_thread_routine routine, void *arg);
int32_t OS_ThreadCancel(pthread_t tid);

#ifdef __cplusplus
}
#endif

#endif //CSP_INCLUDE_OSAL_OSTHREAD_H_
